{% extends "page/index.html" %}

{% load i18n schedule_extras %}

{% block css %}
 <link type="text/css" rel="stylesheet" media="all" href="/medias/css/group.css" />
{% endblock %}

{% block title %}{{ group.name }} - {{block.super}}{% endblock %}

{% block content %}

 <div class="widget">
   {% if IS_ADMIN %}<div class="boutons"><a href="/admin/groups/group/{{ group.id }}/"></a></div>{% endif %}
   <h3 class="title">{{ group.name }} - {% for country in group.countries.all %}{% if not forloop.first %} / {% endif %}{{ country.name }}{% endfor %}</h3>
   {{ group.comment_fr|safe }}

   {% if group.comment_en %}
   {{ group.comment_en|safe }}
   {% endif %}

   {% if schedule %}
   <table style="width: 50%; margin: 15px auto; border: 1px solid #AAA; border-collapse: collapse;">
     <tr style="background-color: #AAA;">
       <th>Jour</th><th>Scène</th><th>Horaire</th>
     </tr>
   {% for c in schedule %}
     <tr>
       <th><a href="{{ c.day.section.get_absolute_url }}">{{ c.day.day|day }}</a></th><th><a href="{{ c.scene.get_absolute_url }}">{{ c.scene }}</a></th><th>{{ c.starting_time|time:"H:i" }}</th>
     </tr>
   {% endfor %}
   </table>
   {% endif %}

   {% if group.photo %}<div style="text-align: center;"><img src="{{ group.photo }}" alt="{{ group.name }}" title="{{ group.name }}" /></div>{% endif %}

   <p style="text-align: center;"><a href="../../" onclick="history.go(-1);return false;">Retour aux groupes</a></p>
 </div>
{% endblock %}

{% block admin %}
    <a href="/admin/groups/group/">Administration</a>
{% endblock %}

